﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Xml.Serialization;
using EpiNEXT.Services.Fields.Properties;

namespace EpiNEXT.Services.Fields
{
    //[Serializable()]
    public abstract class DataField : Field, IDataField
    {
        #region Properties
        [XmlElement("ColumnHeader")]
        public string ColumnHeaderText { get; set; }

        [XmlElement]
        public int? ColumnHeaderWidth { get; set; }

        [XmlElement]
        public int? ColumnOrdinal { get; set; }

        [XmlElement]
        public bool IsRequired { get; set; }

        [XmlElement]
        public bool IsReadOnly { get; set; }
        #endregion // Properties

        #region Constructors
        public DataField()
            : base()
        {
        }
        #endregion // Constructors
    }
}
